import 'package:flutter_stort/page/about_page.dart';
import 'package:flutter_stort/page/collect_page.dart';
import 'package:flutter_stort/page/coupon_page.dart';
import 'package:flutter_stort/page/edit_address_page.dart';
import 'package:flutter_stort/page/feedback_page.dart';
import 'package:flutter_stort/page/goods_details_page.dart';
import 'package:flutter_stort/page/integral_page.dart';
import 'package:flutter_stort/page/login_page.dart';
import 'package:flutter_stort/page/main_page.dart';
import 'package:flutter_stort/page/present_page.dart';
import 'package:flutter_stort/page/register_page.dart';
import 'package:flutter_stort/page/setting_page.dart';
import 'package:flutter_stort/page/shipping_address_page.dart';

var routes = {
  RoutesUtils.LOGIN_ROOT: (context) => LoginPage(),
  RoutesUtils.REGISTER_ROOT: (context) => RegisterPage(),
  RoutesUtils.MAIN_ROOT: (context) => MainPage(),
  RoutesUtils.GOODS_DETAILS_ROOT: (context) => GoodsDetailsPage(),
  RoutesUtils.SETTING_ROOT: (context) => SettingPage(),
  RoutesUtils.ABOUT_ROOT: (context) => AboutPage(),
  RoutesUtils.FEEDBACK_ROOT: (context) => FeedbackPage(),
  RoutesUtils.SHIPPING_ADDRESS_ROOT: (context) => ShippingAddressPage(),
  RoutesUtils.EDIT_ADDRESS_ROOT: (context) => EditAddressPage(),
  RoutesUtils.COLLECT_ROOT: (context) => CollectPage(),
  RoutesUtils.INTEGRAL_ROOT: (context) => IntegralPage(),
  RoutesUtils.COUPON_ROOT: (context) => CouponPage(),
  RoutesUtils.PRESENT_ROOT: (context) => PresentPage(),
};

class RoutesUtils {
  ///登录
  static const String LOGIN_ROOT = "/login";

  ///注册
  static const String REGISTER_ROOT = "/register";

  ///主页
  static const String MAIN_ROOT = "/main";

  ///商品详情
  static const String GOODS_DETAILS_ROOT = "/goods_details";

  ///设置界面
  static const String SETTING_ROOT = "/setting";

  ///关于我们
  static const String ABOUT_ROOT = "/about";

  ///意见反馈
  static const String FEEDBACK_ROOT = "/feedback";

  ///收货地址管理
  static const String SHIPPING_ADDRESS_ROOT = "/shipping_address";

  ///添加和编辑收货地址
  static const String EDIT_ADDRESS_ROOT = "/edit_address";

  ///收藏
  static const String COLLECT_ROOT = "/collect";

  ///积分
  static const String INTEGRAL_ROOT = "/integral";

  ///我的优惠券
  static const String COUPON_ROOT = "/coupon";

  ///我的礼物
  static const String PRESENT_ROOT = "/present";
}
